home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / Aztec C 5.0a disk 1.adf / include / sgtty.h < prev    next >
C/C++ Source or Header  |  1988-11-29  |  2KB  |  56 lines

  1. /* Copyright 1987 Manx Software Systems, Inc */
  2.  
  3. #ifndef __SGTTY_H
  4. #define __SGTTY_H
  5.  
  6. #if 0
  7. #define TIOCGETP    0        /* read contents of tty control structure */
  8. #define TIOCSETP    1        /* set contents of tty control structure */
  9. #define TIOCSETN    2        /* ditto only don't wait for output to flush */
  10. #endif
  11. #define TIOCGETP    0    /* get sgttyb structure */
  12. #define TIOCSETP    1    /* set sgttyb structure; flush input/typeahead */
  13. #define TIOCSETN    2    /* set sgttyb structure; don't flush input/typeahead */
  14. #define    TIOCNTLC    3    /* check for control C */
  15. #define TIOCGETC    4    /* get tchars structure */
  16. #define TIOCSETC    5    /* set tchars structure */
  17. #define TIOCFLUSH    6    /* flush input/typeahead queues */
  18.  
  19. struct sgttyb {
  20.     short sg_flags;        /* control flags */
  21.     char sg_erase;        /* defaults to BACKSPACE */
  22.     char sg_kill;        /* defaults to ^U */
  23. };
  24.  
  25.  
  26. #if 0
  27. /* settings for sg_flags */
  28. #define CBREAK    0x02
  29. #define ECHO    0x08
  30. #define CRMOD    0x10
  31. #define RAW        0x20
  32. #endif
  33.  
  34. /* settings for flags */
  35. #define    TABSIZ    0x000f    /* size of tab if XTABS is set */
  36. #define    XTABS    0x0010    /* convert tabs to spaces on output */
  37. #define    CRMOD    0x0020    /* CR -> LF on input, LF -> CR/LF on output */
  38. #define    ECHO    0x0040    /* echo input to output */
  39. #define    ECHOE    0x0080    /* follow erase character by space, BS */
  40. #define    CBREAK    0x0100    /* don't wait for the whole line */
  41. #define    NODELAY    0x0200    /* return even if no characters */
  42. #define RAW        0x0400    /* no input or output mapping at all */
  43. #define    CHKKEY    0x0800    /* check for keyboard characters during output */
  44. #define    ERASE    0x1000    /* erase character space before drawing */
  45.  
  46. struct tchars {
  47.     char t_intrc;        /* interrupt - ^C (not [yet] implemented) */
  48.     char t_quitc;        /* quit - ^\ (not [yet] implemented) */
  49. /*    char t_startc;        /* start output (not supported) */
  50. /*    char t_stop;        /* stop output (not supported) */
  51.     char t_eofc;        /* end-of-file - ^D */
  52. /*    char t_brck;        /* input delimiter (like nl) (not supported) */
  53. };
  54.  
  55. #endif
  56.